package topcoder;

public class Time {

	public String whatTime(int arg)
	{
		int h=arg/3600;
		int m=arg%3600/60;
		int s=arg%60;
		return h+":"+m+":"+s;
	}
	
	public static void main(String[] args) {
		System.out.println(new Time().whatTime(86399));
		System.out.println(new Time().whatTime(3661));
		System.out.println(new Time().whatTime(5436));
		System.out.println(new Time().whatTime(1));
		System.out.println(new Time().whatTime(0));
	}
}
